<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新的全局常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.classes.html">新类</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.ini.html">INI 文件处理改变</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration53.global-constants" class="section">
  <h2 class="title">新的全局常量</h2>

  <p class="simpara">PHP 核心:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>__DIR__</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>__NAMESPACE__</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>E_DEPRECATED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>E_USER_DEPRECATED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>INI_SCANNER_NORMAL</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>INI_SCANNER_RAW</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_MAXPATHLEN</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_NT_DOMAIN_CONTROLLER</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_NT_SERVER</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_NT_WORKSTATION</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_BUILD</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_MAJOR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_MINOR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_PLATFORM</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_PRODUCTTYPE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_SP_MAJOR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_SP_MINOR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_WINDOWS_VERSION_SUITEMASK</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.curl.html" class="link">cURL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_PROGRESSFUNCTION</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.image.html" class="link">GD</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>IMG_FILTER_PIXELATE</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.json.html" class="link">JSON</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_CTRL_CHAR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_DEPTH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_NONE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_STATE_MISMATCH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_SYNTAX</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_FORCE_OBJECT</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_HEX_TAG</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_HEX_AMP</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_HEX_APOS</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_HEX_QUOT</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.ldap.html" class="link">LDAP</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>LDAP_OPT_NETWORK_TIMEOUT</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.libxml.html" class="link">libxml</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>LIBXML_LOADED_VERSION </code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.pcre.html" class="link">PCRE</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>PREG_BAD_UTF8_OFFSET_ERROR</code></strong>
    </span>
   </li>
  </ul>

  <p class="simpara"><a href="book.pcntl.html" class="link">PCNTL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>BUS_ADRALN</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>BUS_ADRERR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>BUS_OBJERR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_CONTIUNED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_DUMPED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_EXITED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_KILLED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_STOPPED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CLD_TRAPPED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTDIV</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTINV</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTOVF</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTRES</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTSUB</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_FLTUND</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_INTDIV</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>FPE_INTOVF</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_BADSTK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_COPROC</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_ILLADR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_ILLOPC</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_ILLOPN</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_ILLTRP</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_PRVOPC</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ILL_PRVREG</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_ERR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_HUP</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_IN</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_MSG</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_OUT</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POLL_PRI</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SEGV_ACCERR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SEGV_MAPERR</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_ASYNCIO</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_KERNEL</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_MESGQ</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_NOINFO</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_QUEUE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_SIGIO</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_TIMER</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_TKILL</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SI_USER</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SIG_BLOCK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SIG_SETMASK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>SIG_UNBLOCK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>TRAP_BRKPT</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>TRAP_TRACE</code></strong>
    </span>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.classes.html">新类</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.ini.html">INI 文件处理改变</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
